package sel.me.spring.boot159.web.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import sel.me.spring.boot159.web.domain.Result;
import sel.me.spring.boot159.web.feign.hystrix.UserClientHystrix;

/**
 * ProductClient.java
 *
 * @author enlu.shen 29/09/2017
 */
@FeignClient(value = "CASE-USER-CENTER",
//url = "127.0.0.1:9533",
		fallback = UserClientHystrix.class)
public interface UserClient {


	@GetMapping(value = "api/user/getTotalUserCount", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
	Result<Long> getTotalUserCount();
}